package com.stt.experiment.trynetty.constants;

/**
 * 错误码表格
 *
 * @author yjy
 * 2018-05-18 16:06
 */
public enum ErrorCode {

    ER400(400, "参数错误"),
    ER404(404, "请求不存在"),
    ER500(500, "系统错误"),
    ;

    private int code;
    private String desc;
    private ErrorCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
